import React from "react";
import { ProtectRoute } from "../components/PrototectRoute";
import { Login } from "../pages/Login";
import { Register } from "../pages/Register";
import { UpdatePassword } from "../pages/UpdatePassword";

const routes = [
  {
    path: "/",
    element: (
      <ProtectRoute>
        <div>Index</div>
      </ProtectRoute>
    ),
    meta: {
      title: "首页",
    },
  },
  {
    path: "/login",
    element: <Login />,
    meta: {
      title: "登录",
    },
  },
  {
    path: "/register",
    element: <Register />,
    meta: {
      title: "注册",
    },
  },
  {
    path: "/update-password",
    element: <UpdatePassword />,
    meta: {
      title: "修改密码",
    },
  },
];

export default routes;
